#include "comm.hpp"
int main()
{
    int fd = open(Myfifo, O_WRONLY|O_CREAT|O_APPEND,0666);
    if(fd < 0)
    {
        //log() sterror(error), error 输出日志信息
        exit(CILENT_OPEN_ERR);
    }
    std::string s;
    while(true)
    {
        std::cout <<"Enert @: ";
        getline(std::cin, s);
        write(fd, s.c_str(), s.size());
    }
    return 0;
}